#include <list>
namespace alpha_cplusplus_InvalidatedIterator {
    void bad_copy_assign_operator_list1(std::list<int>& L1,
        const std::list<int>& L2) {
        auto i0 = L1.cbegin();
        L1 = L2;
        *i0; // warn: invalidated iterator accessed
    }
}